Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[24.0] Improved error messages for runtime sharing problems. #17794

Merged
merged 1 commit into from
Mar 25, 2024

Conversation

jmchilton
Copy link
Member

Screenshot 2024-03-19 at 11 48 00 AM

Improved the error message in the misc_info to reflect #17763. Kind argues the point that "user facing" language is impossible but lets do our best. Adds a little regex framework for scanning the misc_info and providing help if there are problems. I added regex for the old error message also so pre-24.0 dataset errors should get the same improved error message.

If we merge this - I can improve the modal to provide access to these activities inside the of the help text and links and such. But I want to see if we're okay with this a basis framework for handling such errors going forward.

There is also a bunch of things we can probably do pre-job execution to guess if there will be an error and prevent it before it happens. I'll research that but I want to have an abstraction the admin can configure to eliminate the "preferred" language by indicating the admin will always use the configured object store (dynamic destinations don't overwrite the object store id in unpredictable ways).

How to test the changes?

(Select all options that apply)

  • Instructions for manual testing are as follows:
    1. Misconfigure it and look at the error message.

License

  • I agree to license these and all my past contributions to the core galaxy codebase under the MIT license.

@martenson
Copy link
Member

martenson commented Mar 19, 2024

This feels fragile but helpful and necessary. Including a big private/sharing slider right in the modal is imo a great idea! Thanks John.

edit: or maybe a just button options that say Cancel and Disable Sharing and Continue/Make Private and Continue

@jmchilton jmchilton force-pushed the helpful_job_errors branch from 1441044 to e7f3571 Compare March 19, 2024 20:01
@jmchilton jmchilton force-pushed the helpful_job_errors branch from e7f3571 to 6cd4f68 Compare March 19, 2024 20:03
@jmchilton jmchilton marked this pull request as ready for review March 21, 2024 14:28
@github-actions github-actions bot added this to the 24.1 milestone Mar 21, 2024
@jmchilton jmchilton modified the milestones: 24.1, 24.0 Mar 21, 2024
Comment on lines +11 to +12
// old sharable error: Attempted to create shared output datasets in objectstore with sharing disabled
// new sharable error: Job attempted to create sharable output datasets in a storage location with sharing disabled
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// old sharable error: Attempted to create shared output datasets in objectstore with sharing disabled
// new sharable error: Job attempted to create sharable output datasets in a storage location with sharing disabled

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought this was for regex debugging, but did you actually want to include it here for posterity?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah - I thought it would be good for future austerity so we can keep ensuring this older message is caught and handled appropriately.

@jdavcs jdavcs merged commit cdb5110 into galaxyproject:release_24.0 Mar 25, 2024
51 of 52 checks passed
@jdavcs
Copy link
Member

jdavcs commented Mar 25, 2024

Thanks, @jmchilton!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants